/**
 * Copyright (c) 2016-2100 yunclouds
 */
package com.yunqian.redot.service;

import com.yunqian.redot.domain.TicketOrderDetails;
import com.yunqian.redot.repository.TicketOrderDetailsRepository;
import com.yunqian.service.BaseService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author czy
 * 2018-10-15 14:49:22
 */
@Log4j2
@Service
public class TicketOrderDetailsService extends BaseService<TicketOrderDetails, Long> {

    @Autowired
    private TicketOrderDetailsRepository ticketOrderDetailsRepository;

    public List<TicketOrderDetails> getByOrderNoAndPhoneAndRangeTime(String orderNo, String phone, String beginTime, String endTime) {
        return ticketOrderDetailsRepository.findByOrderNoAndPhoneAndRangeTime(orderNo, phone, beginTime, endTime);
    }

}
